<template>
  <div class="goods-item" @click="itemClick">
    <img v-lazy="goodsitem.show.img" alt="">
  </div>
</template>
<script>
export default {
  name: 'GoodsListItem',
  props: {
    goodsitem: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  methods: {
    itemClick() {
      //通过router跳转到详情页
      // this.$router.push('/detail/' + this.goodsitem.iid )
      this.$router.push({
        path: '/detail',
        query: {
          iid: this.product.iid
        }
      })
    }
  },
}
</script>

<style scoped>

</style>